package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 拼多多授权对象 tl_pdd_token
 * 
 * @author ruoyi
 * @date 2023-11-07
 */
public class TlPddToken extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** tokenid */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 获取token的code */
    @Excel(name = "获取token的code")
    private String code;

    /** access_token */
    @Excel(name = "access_token")
    private String accessToken;

    /** 过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date exTime;

    /**  */
    @Excel(name = "")
    private Long expiresAt;

    /**  */
    @Excel(name = "")
    private Long expiresIn;

    /**  */
    @Excel(name = "")
    private String refreshToken;

    /** 拼多多账号id */
    @Excel(name = "拼多多账号id")
    private String ownerId;

    /** 拼多多账号名称 */
    @Excel(name = "拼多多账号名称")
    private String ownerName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setAccessToken(String accessToken) 
    {
        this.accessToken = accessToken;
    }

    public String getAccessToken() 
    {
        return accessToken;
    }
    public void setExTime(Date exTime) 
    {
        this.exTime = exTime;
    }

    public Date getExTime() 
    {
        return exTime;
    }
    public void setExpiresAt(Long expiresAt) 
    {
        this.expiresAt = expiresAt;
    }

    public Long getExpiresAt() 
    {
        return expiresAt;
    }
    public void setExpiresIn(Long expiresIn) 
    {
        this.expiresIn = expiresIn;
    }

    public Long getExpiresIn() 
    {
        return expiresIn;
    }
    public void setRefreshToken(String refreshToken) 
    {
        this.refreshToken = refreshToken;
    }

    public String getRefreshToken() 
    {
        return refreshToken;
    }
    public void setOwnerId(String ownerId) 
    {
        this.ownerId = ownerId;
    }

    public String getOwnerId() 
    {
        return ownerId;
    }
    public void setOwnerName(String ownerName) 
    {
        this.ownerName = ownerName;
    }

    public String getOwnerName() 
    {
        return ownerName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("code", getCode())
            .append("accessToken", getAccessToken())
            .append("exTime", getExTime())
            .append("expiresAt", getExpiresAt())
            .append("expiresIn", getExpiresIn())
            .append("refreshToken", getRefreshToken())
            .append("ownerId", getOwnerId())
            .append("ownerName", getOwnerName())
            .toString();
    }
}
